gewei = ['','one','two','three','four','five','six','seven','eight','nine',]
shiji = ['','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen',]
shiwei = ['','ten','twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety',]
def c1000(n):
    val = ''
    if n>=100:
        val = gewei[n/100] + ' hunderd'
        if n%100 > 0:
            val += ' and'
    return val + c100(n%100)

def c100(n):
    if n >10 and n<20:
        return ' ' + shiji[n-10]
    return ' ' + shiwei[n/10] + ' ' + gewei[n%10]

